package study.designpattern.command;

public class MainCommand {
    public static void main(String[] args) {
        Light light = new Light();
        Command commandUp = new FlipUpCommand(light);
        Command commandDown = new FlipDownCommand(light);
        Invoker invoker = new Invoker();
        
        invoker.storeAndExecute(commandUp);
        invoker.storeAndExecute(commandDown);
    }
}
